package com.tenebrous.jestic.utils;

import java.util.Random;

/**
 * @Classname RandomNumberUtil
 * @Description TODO
 * @Date 2022/12/8 11:07 PM
 * @Created by zhangya
 */
public class RandomNumberUtil {

  public static String getRandomNumber() {

    String str = "0123456789";
    StringBuilder sb = new StringBuilder(6);
    for (int i = 0; i < 6; i++) {
      char ch = str.charAt(new Random().nextInt(str.length()));
      sb.append(ch);
    }
    return sb.toString();
  }

}
